package com.aos.erp.gov.ex.model;

import com.aos.erp.gov.ex.enums.TaskSyncStatus;
import com.aos.erp.gov.ex.enums.TaskSyncType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;


@Getter
@Setter
@TableName("t_gov_ex_sync_task")
public class GovExSyncTask implements Serializable {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.INPUT)
    private long id;

    @ApiModelProperty("")
    @TableField("ticket_id")
    private long ticketId;

    @ApiModelProperty("")
    @TableField("account")
    private String account;


    @ApiModelProperty("10 约考 20 成绩")
    @TableField("task_type")
    private TaskSyncType taskType = TaskSyncType.cj;


    @ApiModelProperty("查询的时间点")
    @TableField("time_line")
    private Date timeLine;


    @ApiModelProperty("可执行状态")
    @TableField("status")
    private TaskSyncStatus status;


    @ApiModelProperty("上次开始执行时间")
    @TableField("last_start_time")
    private Date lastStartTime;

    @ApiModelProperty("上次结束执行时间")
    @TableField("last_end_time")
    private Date lastEndTime;


    @ApiModelProperty("上次处理数量")
    @TableField("last_num")
    private int lastNum;


    @ApiModelProperty("上次花费时间")
    @TableField("last_cost_time")
    private int lastCostTime;


}
